
local console_type = '风格1'
local console = require '系统.基础界面.控制台'

if console_type=='风格1' then
    --技能按钮
    local g1,g2 = 13.5,10
    local slots = {9,10,11,12,5,6,7,8,1,2,3,4}
    local w,h = 80,60
    for i,panel in ipairs(console.abilitydetail) do
        local a,b = math.ceil(i/4),(i-1)%4 + 1
        local x,y = (b-1)*(w + g1),(a-1)*(h+g2)
        panel.slotid = i
        panel:set_control_size(w,h)
        panel:set_position(x + 1537,y + 875)
        local button = console.ability[i]
        if button then
            ac.wait(10,function()
                button:set_control_size(w,h)
                button:set_position(panel.x,panel.y)
            end)
        end
    end

    --物品按钮
    local g1,g2 = 21,12
    local w,h = 75,56.25
    for i,panel in ipairs(console.itemdetail) do
        local a,b = math.ceil(i/2),(i-1)%2 + 1
        local x,y = (b-1)*(w + g1),(a-1)*(h+g2)
        panel.slotid = i
        panel:set_control_size(w,h)
        panel:set_position(x + 1239,y + 878)
        local button = console.item[i]
        if button then
            ac.wait(10,function()
                button:set_control_size(w,h)
                button:set_position(panel.x,panel.y)
            end)
        end
    end

    --小地图
    local minimap = console.minimap
    minimap:set_control_size(250, 185)
    minimap:set_position(20,875)
    ac.wait(10,function()
        japi.DzSetWar3MapMap('war3mapMap1.blp')
    end)
    --小地图按钮
    for i,button in ipairs(console.minimapbutton) do
        button:set_position(-100, -100)
    end
    
end